const mongoose=require("mongoose")

let schema = new mongoose.Schema({
    name:{
        type:String,
        require:true
    },
    articleNumber:{
        type:Number,
        require: true
    }
},
{
    timestamps: {
        createdAt: 'created',
        updatedAt: 'updated'
    }
}
);

let model =mongoose.model("category",schema);
module.exports = model;